import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;


public abstract class Parser
{
    protected BufferedWriter writer;
    protected BufferedReader reader;
    
    public Parser (String file) throws IOException
    {
        reader = new BufferedReader(new FileReader(file));
        String output = file.split("\\.")[0] + ".sql";
        writer = new BufferedWriter(new FileWriter(output));
    }
    
    public abstract void parse() throws IOException;
}
